﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace EcoSystem
{
    /// <summary>
    /// 汇总列配置
    /// </summary>
    [NotMapped]
    [Serializable]
    public class SummaryColumnConfig
    {
        /// <summary>
        /// 列名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 汇总数据来源
        /// </summary>
        public SummaryBindTypeEnum BindType { get; set; }

        /// <summary>
        /// 求和类型
        /// </summary>
        public SummaryTypeEnum SummaryType { get; set; }

        /// <summary>
        /// 绑定字段路径
        /// </summary>
        public string BindField { get; set; }

        /// <summary>
        /// 自定义内容值
        /// </summary>
        public string Value { get; set; }

        /// <summary>
        /// 保留小数位数
        /// </summary>
        public Nullable<int> Digit { get; set; }
    }
}
